home *** CD-ROM | disk | FTP | other *** search
- head 1.7;
- branch ;
- access ;
- symbols ;
- locks ; strict;
- comment @@;
-
-
- 1.7
- date 88.12.29.12.06.02; author ouster; state Exp;
- branches ;
- next 1.6;
-
- 1.6
- date 88.12.29.10.12.21; author ouster; state Exp;
- branches ;
- next 1.5;
-
- 1.5
- date 88.12.29.09.37.20; author ouster; state Exp;
- branches ;
- next 1.4;
-
- 1.4
- date 88.12.29.09.29.17; author ouster; state Exp;
- branches ;
- next 1.3;
-
- 1.3
- date 88.12.29.09.28.58; author ouster; state Exp;
- branches ;
- next 1.2;
-
- 1.2
- date 88.12.19.14.23.59; author ouster; state Exp;
- branches ;
- next 1.1;
-
- 1.1
- date 88.12.19.14.08.12; author ouster; state Exp;
- branches ;
- next ;
-
-
- desc
- @@
-
-
- 1.7
- log
- @For Nroff, shorten "Sprite version 1.0" so it doesn't overflow space.
- @
- text
- @.\" Copyright (c) 1980 Regents of the University of California.
- .\" All rights reserved. The Berkeley software License Agreement
- .\" specifies the terms and conditions for redistribution.
- .\"
- .\" @@(#)tmac.an.new 6.3 (Berkeley) 2/2/86
- .\"
- ' DT, PD, SM, and B macros invoked internally.
- ' # month name
- .if "\nd"0" .nr m \n(mo-1
- .if "\nm"0" .ds ]m January
- .if "\nm"1" .ds ]m February
- .if "\nm"2" .ds ]m March
- .if "\nm"3" .ds ]m April
- .if "\nm"4" .ds ]m May
- .if "\nm"5" .ds ]m June
- .if "\nm"6" .ds ]m July
- .if "\nm"7" .ds ]m August
- .if "\nm"8" .ds ]m September
- .if "\nm"9" .ds ]m October
- .if "\nm"10" .ds ]m November
- .if "\nm"11" .ds ]m December
- ' # set the date
- .if n \{.nr m \nm+1
- . ie \nd .ds ]W Modified \nm/\nd/\ny
- . el .ds ]W Printed \n(mo/\n(dy/\n(yr\}
- .if t \{.ie \nd .ds ]W \*(]m \nd, 19\ny
- . el .ds ]W \*(]m \n(dy, 19\n(yr\}
- .if t .ds ]W Sprite version 1.0
- .if n .ds ]W Sprite v1.0
- .if t .tr *\(**
- .ie n \{\
- . ds lq \&"\"
- . ds rq \&"\"
- .\}
- .el \{\
- . ds rq ''
- . ds lq ``
- .\}
- ' # reset the basic page layout
- .de }E
- .}f
- .in \\n()Ru+\\n(INu
- .ll \\n(LLu
- ..
- ' # default tabs
- .de DT
- 'ta .5i 1i 1.5i 2i 2.5i 3i 3.5i 4i 4.5i 5i 5.5i 6i 6.5i
- ..
- ' # set type font and size
- .de }f
- .ps 10
- .ft 1
- ..
- ' # handle the head of the page
- .de }H
- .ev 1
- .}C
- .ie "\*(.T"va" 'sp .1i
- .el 'sp .5i
- .ft 1
- .ps 10
- .tl @@\\*(]H@@\\*(]D@@\\*(]H@@
- 'sp .5i
- .ev
- .ns
- ..
- ' # handle the foot of the page
- .de }F
- .ev 1
- .ft 1
- .ps 10
- 'sp .5i
- .tl @@\\*(]W@@\\*(]L@@%@@
- 'bp
- .ev
- ..
- ' # the cut mark
- .if !"\*(.T"vp" .ig
- .de }C
- .po 0i
- .lt 7.45i
- .tl '__''__'
- .po
- .lt
- ..
- ' # the final cut mark
- .de }M
- .}N
- .wh -1p }C
- .ll \\n(LLu
- ..
- ' # no runout unless there was a .TH
- .de }K
- .}N
- .pl 1
- .ll \\n(LLu
- ..
- .em }K
- ' # set title and heading
- .de TH
- .PD
- .if n .nr IN .5i
- .if t .nr IN .5i
- .nr LL \\n(.l
- .ds ]H \\$1
- .ds ]D UNKNOWN MANUAL SECTION
- .if '\\$2'1' .ds ]D User Commands
- .if '\\$2'1C' .ds ]D User Commands
- .if '\\$2'1L' .ds ]D User Commands
- .if '\\$2'6' .ds ]D Games and Demos
- .if '\\$2'7' .ds ]D Tables
- .if '\\$2'2' .ds ]D C Library Procedures
- .if '\\$2'3' .ds ]D C Library Procedures
- .if '\\$2'3C' .ds ]D C Library Procedures
- .if '\\$2'3F' .ds ]D Fortran Library Procedures
- .if '\\$2'3S' .ds ]D C Library Procedures
- .if '\\$2'3M' .ds ]D Mathematical Library Procedures
- .if '\\$2'3N' .ds ]D C Library Procedures
- .if '\\$2'3R' .ds ]D RPC Services
- .if '\\$2'3X' .ds ]D C Library Procedures
- .if '\\$2'5' .ds ]D File Formats
- .if '\\$2'4' .ds ]D Devices
- .if '\\$2'8' .ds ]D User Commands
- .ds ]L\"
- .if !"\\$3"" .ds ]L \\$3
- .if !"\\$4"" .ds ]W \\$4
- .wh 0 }H
- .if t .if !"\*(.T"va" .wh -1i }F
- .if t .if "\*(.T"va" .wh -1.4i }F
- .if n .wh -1.167i }F
- .em }M
- .if \\n(nl .bp 1
- .}E
- .DT
- .nr )I .5i
- .nr )R 0
- .if n .na
- ..
- ' # section heading
- .de SH
- .ss 12
- .if "\\$1"SYNOPSIS" .ss 18
- .}X 0
- .nr )E 2
- .SM
- \&\\$1 \|\\$2 \|\\$3 \|\\$4 \|\\$5 \|\\$6
- ..
- ' # sub section heading
- .de SS
- .ne 4
- .}X \\n()Ru+\\n(INu ""
- \&\\$1 \|\\$2 \|\\$3 \|\\$4 \|\\$5 \|\\$6
- .br
- ..
- ' # subroutine for section heading
- .de }X
- .}E
- .ti \\$1
- .sp \\n()Pu
- .ne 2
- .nr )R 0
- .fi
- .it 1 }N
- .B
- ..
- ' # end of SH (cf }X above and }N below)
- .de }2
- .nr )E 0
- .}E
- .nr )I .5i
- .ns
- ..
- ' # italic
- .de I
- .ft 2
- .it 1 }N
- .if !"\\$1"" \&\\$1 \\$2 \\$3 \\$4 \\$5 \\$6
- ..
- ' # bold
- .de B
- .ft 3
- .it 1 }N
- .if !"\\$1"" \&\\$1 \\$2 \\$3 \\$4 \\$5 \\$6
- ..
- ' # small
- .de SM
- .ps 9
- .it 1 }N
- .if !"\\$1"" \&\\$1 \\$2 \\$3 \\$4 \\$5 \\$6
- ..
- ' # combinations of Roman, italic, bold
- .de RI
- .}S 1 2 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
- ..
- .de RB
- .}S 1 3 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
- ..
- .de IR
- .}S 2 1 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
- ..
- .de IB
- .}S 2 3 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
- ..
- .de BR
- .}S 3 1 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
- ..
- .de BI
- .}S 3 2 \& "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6"
- ..
- ' # make special case of shift out of italic
- .de }S
- .ds ]F
- .if "\\$1"2" .if !"\\$5"" .ds ]F\^
- .ie !"\\$4"" .}S \\$2 \\$1 "\\$3\f\\$1\\$4\\*(]F" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9"
- .el \\$3
- .}f
- ..
- ' # paragraph
- .de LP
- .PP
- ..
- .de PP
- .sp \\n()Pu
- .ne 1.1v
- .}E
- .nr )I .5i
- .ns
- ..
- ' # synonym for .PP
- .de P
- .PP
- ..
- ' # paragraph distance
- .de PD
- .if t .nr )P .4v
- .if n .nr )P 1v
- .if !"\\$1"" .nr )P \\$1v
- ..
- ' # paragraph with hanging indent
- .de HP
- .sp \\n()Pu
- .ne 1.1v
- .if !"\\$1"" .nr )I \\$1n
- .ll \\n(LLu
- .in \\n()Ru+\\n(INu+\\n()Iu
- .ti \\n()Ru+\\n(INu
- .}f
- ..
- ' # indented paragraph
- .de IP
- .TP \\$2
- \&\\$1
- ..
- ' # tagged paragraph (paragraph with hanging label)
- .de TP
- .if !"\\$1"" .nr )I \\$1n
- .sp \\n()Pu
- .ne 1.1v
- .in \\n()Ru
- .nr )E 1
- .ns
- .it 1 }N
- .di ]B
- ..
- ' # end of TP (cf }N below)
- .de }1
- .ds ]X \&\\*(]B\\
- .nr )E 0
- .if !"\\$1"" .nr )I \\$1n
- .}f
- .ll \\n(LLu
- .in \\n()Ru+\\n(INu+\\n()Iu
- .ti \\n(INu
- .ie !\\n()Iu+\\n()Ru-\w@@\\*(]X@@u-3p \{\\*(]X
- .br\}
- .el \\*(]X\h@@|\\n()Iu+\\n()Ru@@\c
- .}f
- ..
- ' # handle end of 1-line features
- .de }N
- .if \\n()E .br
- .di
- .if "\\n()E"0" .}f
- .if "\\n()E"1" .}1
- .if "\\n()E"2" .}2
- .nr )E 0
- ..
- ' # increase relative indent
- .de RS
- .nr ]\\n+()p \\n()I
- .nr )\\n()p \\n()R
- .ie !"\\$1"" .nr )R +\\$1n
- .el .nr )R +\\n()I
- .nr )I .5i
- .}E
- ..
- .de DS
- .RS
- .nf
- .sp
- ..
- ' # decrease relative indent
- .de RE
- .if !"\\$1"" \{.ie "\\$1"0" .nr )p 1 1
- . el .nr )p \\$1 1\}
- .ds ]i \\*(]I\\n()p
- .ds ]r \\*(]R\\n()p
- .nr )I \\*(]i
- .nr )R \\*(]r
- .if \\n()p .nr )p -1
- .}E
- ..
- .de DE
- .fi
- .RE
- .sp.5
- ..
- .nr )p 0 1
- .ds ]I \\\\n(]
- .ds ]R \\\\n()
- .bd S B 3
- .if t .ds R \(rg
- .if n .ds R (Reg.)
- .ds S \s10
- .hy 14
- .if "\*(.T"va" .po -0.4i
- ./"
- ./" Sprite addition: define ]l string variable to hold directory
- ./" containing macro library, for ease in including tmac.sprite.
- .ds ]l /sprite/lib/ditroff/
- @
-
-
- 1.6
- log
- @Forget the last two deltas. They produced other undesirable
- side-effects. I gradually migrated diffs from tmac.an.new to
- this file until I found a bug in .TH where it was setting too
- many footer traps. Fixed the bug, and left in the other changes
- moved from tmac.an.new (mostly just syntactic changes, not
- semantic).
- @
- text
- @d29 1
- @
-
-
- 1.5
- log
- @Oops; got wrong version of file in last delta. This is the
- Sprite-ified Monet version.
- @
- text
- @a37 20
- .de AT
- .if t \{\
- . ds ]W 7th Edition
- . if "\\$1"3" .ds ]W 7th Edition
- . if "\\$1"4" .ds ]W System III
- . if "\\$1"5" \{\
- . ie "\\$2"" .ds ]W System V
- . el .ds ]W System V Release \\$2
- . \}
- .\}
- ..
- .de UC
- .if t \{\
- . ds ]W 3rd Berkeley Distribution
- . if "\\$1"3" .ds ]W 3rd Berkeley Distribution
- . if "\\$1"4" .ds ]W 4th Berkeley Distribution
- . if "\\$1"5" .ds ]W 4.2 Berkeley Distribution
- . if "\\$1"6" .ds ]W 4.3 Berkeley Distribution
- .\}
- ..
- d77 1
- a77 3
- \" .if n .ig
- \" .if \nv>0 .ig
- .ig
- a100 1
- .DT
- d103 2
- a104 1
- .nr LL \\n(.l.ds ]H \\$1
- d127 2
- a128 2
- .if t .ie !"\*(.T"va" .wh -1i }F
- .if t .el .wh -1.4i }F
- d149 2
- a150 1
- .}X \\n()Ru+\\n(INu
- d223 1
- a223 1
- .ne 2
- d241 1
- a241 1
- .ne 2
- d315 1
- a315 1
- .sp .5
- @
-
-
- 1.4
- log
- @Was having problems with infinite recursion in footer macro.
- So, imported tmac.an.new from Monet (this file), and added
- Sprite upgrades. Problem seems to have gone away (but I
- don't know why).
- @
- text
- @d28 1
- d97 3
- a99 2
- .if n .ig
- .if \nv>0 .ig
- d126 22
- a147 4
- .nr LL \\n(.l
- .ds ]H \\$1\|(\|\\$2\|)
- .ie "\\$5"" .ds ]D UNIX Programmer's Manual
- .el .ds ]D \\$5
- a153 1
- .ds ]L \\$3
- a158 6
- .mk ka
- .if !'\\n(ka'-1' .bp
- .if t \{\
- . ie "\\$4"" .ds ]W 7th Edition
- . el .ds ]W \\$4
- .\}
- d163 1
- a163 1
- .if "\\$2"SYNOPSIS" .ss 18
- a214 6
- .de VS
- 'if '\\$1'4' .mc \s12\(br\s0
- ..
- .de VE
- 'mc
- ..
- d347 4
- @
-
-
- 1.3
- log
- @Augment section names.
- @
- text
- @d1 6
- d28 29
- a56 1
- .if t .ds ]W Sprite version 1.0
- d76 2
- a77 2
- .if !"\*(.T"va" 'sp .4i
- 'sp .1i
- d96 2
- a97 1
- .if !"\*(.T"vp" .ig
- d111 1
- a111 1
- ' # no run-out unless there was a .TH
- d121 1
- d125 3
- a127 22
- .ds ]H \\$1
- .ds ]D UNKNOWN SECTION OF THE MANUAL
- .if '\\$2'1' .ds ]D User Commands
- .if '\\$2'1C' .ds ]D User Commands
- .if '\\$2'1L' .ds ]D User Commands
- .if '\\$2'6' .ds ]D Games and Demos
- .if '\\$2'7' .ds ]D Tables
- .if '\\$2'2' .ds ]D C Library Procedures
- .if '\\$2'3' .ds ]D C Library Procedures
- .if '\\$2'3C' .ds ]D C Library Procedures
- .if '\\$2'3F' .ds ]D Fortran Library Procedures
- .if '\\$2'3S' .ds ]D C Library Procedures
- .if '\\$2'3M' .ds ]D Mathematical Library Procedures
- .if '\\$2'3N' .ds ]D C Library Procedures
- .if '\\$2'3R' .ds ]D RPC Services
- .if '\\$2'3X' .ds ]D C Library Procedures
- .if '\\$2'5' .ds ]D File Formats
- .if '\\$2'4' .ds ]D Devices
- .if '\\$2'8' .ds ]D User Commands
- .ds ]L\"
- .if !"\\$3"" .ds ]L \\$3
- .if !"\\$4"" .ds ]W \\$4
- d129 2
- a130 2
- .if !"\*(.T"va" .wh -1i }F
- .if "\*(.T"va" .wh -1.4i }F
- d134 1
- d140 6
- d149 3
- a151 1
- .}X 0 "\\$1" smaller
- d153 1
- d158 1
- a158 2
- .ne 4
- .}X \\n()Ru+\\n(INu ""
- d167 1
- a167 1
- .ne 1.1v
- a169 2
- .ss 12
- .if "\\$2"SYNOPSIS" .ss 18
- a170 1
- .if !"\\$3"" .SM
- d202 6
- d232 3
- d237 1
- a237 1
- .ne 1.1v
- d255 1
- a255 1
- .ne 1.1v
- d262 5
- d329 1
- a329 1
- .sp.5
- a330 9
- ' # obsolete synonym for PP (not advertised)
- .de LP
- .PP
- ..
- ' # indented paragraph
- .de IP
- .TP \\$2
- \&\\$1
- ..
- a339 4
- ./"
- ./" Sprite addition: define ]l string variable to hold directory
- ./" containing macro library, for ease in including tmac.spman.
- .ds ]l /sprite/lib/ditroff/
- @
-
-
- 1.2
- log
- @Define ]l string for use in Sprite man pages.
- @
- text
- @d22 1
- a22 1
- .if t .ds ]W 4th Berkeley distribution
- d89 19
- a107 2
- .ds ]H \\$1\|(\|\\$2\|)
- .ds ]D UNIX Programmer's Manual
- d110 1
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @d294 4
- @
-